package priv.stones.io.Scanner.file;

import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

/**
 * @Author: Stones
 * @Description:
 * @Date: 2017/10/31 16:07
 */
public class Reader1 {

    public static void main(String[] args) throws IOException {
        File file = new File("e:" + File.separator + "hello" + File.separator + "2.txt");
        Reader reader = new FileReader(file);
        char[] data = new char[1024];
        reader.read(data);
        System.out.println(new String(data));
        reader.close();
    }

}
